<HTML>
<HEAD>
{literal}
<STYLE> 
BODY
{
	font-family: Calibri;
}
.box
{
	border: 1px solid #dddddd;
	background-color: #eeeeee;
}
.box
{
	margin: 2px;
	padding: 1px;
}
.box H4
{
	margin: 0;
	font-size: 12px;
}

</STYLE>
{/literal}
</HEAD>
<BODY>
<a href='http://ninja.com'>Go to NINJA</a>
<br/>
{if $tasks_new}
<br/>
<strong>New tasks:</strong>
<table border=1 width=100% cellpadding=10>
<tr><td colspan=3>
<H4>
[{foreach name=prj from=$project item=prj}{$prj.name}{if !$smarty.foreach.prj.last}, {/if}{/foreach}]
</H4> 
</td></tr>
{foreach from=$tasks_new item=task}<tr style="background-color: {$task.color}">
<td>{$task.name}{if ($task.desc!='' and $task.desc!='null')}-- [{$task.desc}]{/if}</td>
<td>[{foreach name=user from=$task.users item=user}{$user.name}{if !$smarty.foreach.user.last}/{/if}{/foreach}]</td>
<td>{$task.date}/{$task.author}</td>
</tr>{/foreach}
</table>
{/if}
{if $tasks_updated}
<br/>
<strong>Updated tasks:</strong>
<table border=1 width=100% cellpadding=10>
<tr><td colspan=3>
<H4>
[{foreach name=prj from=$project item=prj}{$prj.name}{if !$smarty.foreach.prj.last}, {/if}{/foreach}]
</H4> 
</td></tr>
{foreach from=$tasks_updated item=task}<tr style="background-color: {$task.color}">
<td>{$task.name}{if ($task.desc!='' and $task.desc!='null')}-- [{$task.desc}]{/if}</td>
<td>[{foreach name=user from=$task.users item=user}{$user.name}{if !$smarty.foreach.user.last}/{/if}{/foreach}]</td>
<td>{$task.date}/{$task.author}</td>
</tr>{/foreach}
</table>
{/if}
<br/>
<a href='http://ninja.com'>Go to NINJA</a>
</BODY></HTML>
